package com.carbon.assets.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 交易所账户表
 * </p>
 *
 * @author Carbon
 * @since 2022-09-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("exchange_account")
public class ExchangeAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 账户名
     */
    @TableField("account_name")
    private String accountName;

    /**
     * 密码
     */
    @TableField("password")
    private String password;

    /**
     * 账户类型
     */
    @TableField("account_type")
    private Integer accountType;

    /**
     * 券商ID
     */
    @TableField("broker_id")
    private Long brokerId;

    /**
     * 碳交易所ID
     */
    @TableField("carbon_exchange_id")
    private Long carbonExchangeId;

    /**
     * 碳配额数量
     */
    @TableField("carbon_amount")
    private BigDecimal carbonAmount;

    /**
     * CCER数量
     */
    @TableField("ccer_amount")
    private BigDecimal ccerAmount;

    /**
     * 账户状态
     */
    @TableField("account_status")
    private String accountStatus;

    /**
     * 登录时间
     */
    @TableField("login_time")
    private LocalDateTime loginTime;

    /**
     * 绑定时间
     */
    @TableField("binding_time")
    private LocalDateTime bindingTime;

    /**
     * 租户ID
     */
    @TableField("tenant_id")
    private Long tenantId;

    /**
     * 备注
     */
    @TableField("remarks")
    private String remarks;

    /**
     * 创建人ID
     */
    @TableField("creator_id")
    private Long creatorId;

    /**
     * 更新人ID
     */
    @TableField("updated_id")
    private Long updatedId;

    /**
     * 创建时间
     */
    @TableField("created_time")
    private LocalDateTime createdTime;

    /**
     * 更新时间
     */
    @TableField("updated_time")
    private LocalDateTime updatedTime;

    /**
     * 账户凭证
     */
    @TableField("Account_credentials")
    private String accountCredentials;

    /**
     * Cookie
     */
    @TableField("cookie")
    private String cookie;
}